home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global plant, plantcounter, effectspath
- if plantcounter < 0 then
- set the member of sprite 27 to member(87, 1)
- set the member of sprite 28 to member(87, 1)
- set the member of sprite 29 to member(87, 1)
- set the member of sprite 3 to member(87, 1)
- set the member of sprite 4 to member(87, 1)
- sprite(3).visible = 0
- sprite(4).visible = 0
- updateStage()
- if plant < 9 then
- x = random(5)
- if (x = 1) or (x = 2) or (x = 3) then
- sound playFile 2, effectspath & "atziz"
- plantcounter = 18
- sprite(26 + x).visible = 1
- set the member of sprite (26 + x) to member(186 + x, 1)
- y = random(6)
- if (x = 1) or (x = 2) or (x = 3) then
- sprite(26 + x).visible = 1
- set the member of sprite (26 + x) to member(186 + x, 1)
- end if
- if (x = 1) and (sprite(11).visible = 1) then
- sprite(3).visible = 1
- set the member of sprite 3 to member(187)
- sprite(27).visible = 0
- sprite(28).visible = 0
- else
- if (x = 2) and (sprite(11).visible = 1) then
- sprite(4).visible = 1
- set the member of sprite 4 to member(188)
- sprite(27).visible = 0
- sprite(28).visible = 0
- else
- if (x = 1) and (sprite(8).visible = 1) then
- sprite(3).visible = 1
- sprite(27).visible = 0
- sprite(28).visible = 0
- set the member of sprite 3 to member(187)
- end if
- end if
- end if
- plant = plant + 1
- end if
- else
- go("docwin")
- end if
- end if
- end
-